<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>文章管理</title>
 <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/css/hdui.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/css/bootstrap.min.css">
</head>
<body>
<div class="wrap">
    <table class="table2">
        <thead>
        <tr>
            <td width="50">id</td>
            <td>文章标题</td>
            <td width="">所属分类</td>
            <td width="100">标签</td>
            <td width="100">属性</td>
            <td width="180">添加时间</td>
            <td width="180">修改时间</td>

            <td width="50">作者</td>
            <td width="150">操作</td>
        </tr>
        </thead>
        <?php $i=1;?>
        <foreach name="data" item="v">
        <tbody>
            <tr>
                <td width="50"><?php echo $i;?></td>
                <td>{$v.title}</td>
                <td width="">{$v.cname}</td>
                <td width="100">标签</td>
                <td width="100">{$v.attr}</td>
                <td width="180">{$v.sendtime|date="Y-m-d H:i:s",###}</td>
                <if condition="$v.editime eq 0 " >
                    <td width="180">--</td>
                    <else />
                    <td width="180">{$v.editime|date="Y-m-d H:i:s",###}</td>
                </if>
                <td width="50">{$v.author}</td>
                <td width="150">
                    <a href="{:U('Article/edit',array('aid'=>$v['aid']))}"><button type="button" class="btn btn-primary btn-sm">修改</button></a>
                    <a href="{:U('Article/del',array('aid'=>$v['aid']))}"><button type="button" class="btn btn-danger btn-sm">删除</button></a>
                </td>
        </tr>
        </tbody>
            <?php $i++;?>
        </foreach>
    </table>
    <div class="page_hdjob">
      
    </div>
</div>

</body>
</html>


